package com.rssignaturecapture;

import android.graphics.Paint;
import android.graphics.RectF;

import com.rssignaturecapture.utils.TimedPoint;

import java.util.List;

public class RSSignatureCaptureDataManager extends Object {
    private volatile static RSSignatureCaptureDataManager mSingleton = null;

    private List<TimedPoint> mRecoverStartPoints;
    private List<List<TimedPoint>> mRecoverPathPoints;
    private RectF imageRect;
    private boolean isEmpty;
    private Paint mPaint;

    private RSSignatureCaptureDataManager () {}

    public static RSSignatureCaptureDataManager getInstance() {
        if (mSingleton == null) {
            synchronized (RSSignatureCaptureDataManager.class) {
                if (mSingleton == null) {
                    mSingleton = new RSSignatureCaptureDataManager();
                }
            }
        }
        return mSingleton;
    }

    public List<TimedPoint> getmRecoverStartPoints() {
        return mRecoverStartPoints;
    }

    public void setmRecoverStartPoints(List<TimedPoint> mRecoverStartPoints) {
        this.mRecoverStartPoints = mRecoverStartPoints;
    }

    public List<List<TimedPoint>> getmRecoverPathPoints() {
        return mRecoverPathPoints;
    }

    public void setmRecoverPathPoints(List<List<TimedPoint>> mRecoverPathPoints) {
        this.mRecoverPathPoints = mRecoverPathPoints;
    }

    public RectF getImageRect() {
        return imageRect;
    }

    public void setImageRect(RectF imageRect) {
        this.imageRect = imageRect;
    }

    public boolean isEmpty() {
        return isEmpty;
    }

    public void setEmpty(boolean empty) {
        isEmpty = empty;
    }

    public Paint getmPaint() {
        return mPaint;
    }

    public void setmPaint(Paint mPaint) {
        this.mPaint = mPaint;
    }
}
